
//
//  YMSPicture.swift
//  YMSWeibo
//
//  Created by 杨茂盛 on 2016/11/16.
//  Copyright © 2016年 杨茂盛. All rights reserved.
//

import UIKit

class YMSPicture: NSObject {
    //缩略图的地址
    var thumbnail_pic: String?{
        didSet{
            //给bimiddle属性赋值
            bimiddleImage = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "bmiddle")
        //给wap360赋值
            wap360 = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "wap360")
              imageUrl = URL(string: wap360 ?? "")
        }
    }
    
    //缩略图太过模糊,要替换成高清的图片
    var wap360 :String?
    var imageUrl :URL?
    var bimiddleImage: String?

}
